package com.dushuren.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dushuren.project.model.dto.SearchWordsRequest;
import com.dushuren.project.model.entity.RecordWordsSearch;
import com.dushuren.project.model.entity.SuggestNotWordsSearch;
import com.dushuren.project.model.entity.SuggestWordsSearch;
import com.dushuren.project.model.vo.SuggestWordsSearchVo;

import java.util.List;

/**
* @author qieqie
* @description 针对表【suggest_not_words_search(搜索记录表)】的数据库操作Service
* @createDate 2022-11-02 09:19:45
*/
public interface SuggestNotWordsSearchService extends IService<SuggestNotWordsSearch> {

  /**
   * 校验 Words 中是否存在 违规词
   * @param searchInformation 字
   * @return
   */
  public boolean wordsIsDeregulation(String searchInformation);


  /***
   * 分页查询 搜索词
   * @param searchWordsRequest
   * @return
   */
  Page<SuggestWordsSearchVo> queryListData(SearchWordsRequest searchWordsRequest);


  /**
   * 获取 listSuggestWordsSearchVo
   * @param page
   * @return
   */
  List<SuggestWordsSearchVo> getSuggestWordsNotSearchVo(Page<SuggestNotWordsSearch> page);

  /**
   * 删除 搜索词
   * @param searchId
   * @return
   */
  Long deleteSearchWords(Long searchId);

  /***
   * 修改 不推荐词
   * @param suggestNotWordsSearch 修改的数据
   * @return
   */
  Long updateSearchWords(SuggestNotWordsSearch suggestNotWordsSearch);

  /***
   * 增加 不推荐的删除词
   * @param suggestNotWordsSearch 增加的数据
   * @return
   */
  Long addSearchWords(SuggestNotWordsSearch suggestNotWordsSearch);
}
